﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SmallJob.Model;
using SmallJob.Data.Interfaces;

namespace SmallJob.Services.Interfaces
{
    public interface IRequestService : IRepository<Request>
    {
        List<Request> GetByPage(int page, int pagesize, out int total);
        List<Request> GetAllByPage(int page, int pagesize, out int total);
        List<Request> Find(string s);
        List<Request> GetRequestByUserID(int id);
        List<Request> GetRequestByCategoryID(int id);

        List<Request> GetByPageFilter(int indexpage, int pagesize, out int total, string valuefilter);
        List<Request> GetAllByPageFilter(int indexpage, int pagesize, out int total, string valuefilter);

        List<Request> GetByPageFilter(int indexpage, int pagesize, out int total, string location, int category,string title);

        List<Request> GetForHome();

        List<Request> GetForHome(int number);
    }
}
